OfType(TResult) Method

Task Parallel System.Threading

Filters the elements of a ParallelQuery based on a specified type.

Namespace:  System.Linq
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function OfType(Of TResult) ( _
	source As ParallelQuery _
) As ParallelQuery(Of TResult)
C#
public static ParallelQuery<TResult> OfType<TResult>(
	ParallelQuery source
)

Parameters

source
Type: System.Linq..::.ParallelQuery
The sequence whose elements to filter.

Type Parameters

TResult
The type to filter the elements of the sequence on.

Return Value

A sequence that contains elements from the input sequence of type TResult.

Exceptions

ExceptionCondition
System..::.ArgumentNullException source is a null reference (Nothing in Visual Basic).

See Also